package com.southwind.springboottest.studykotlin.s2

import com.southwind.springboottest.studykotlin.s1.age
import com.southwind.springboottest.studykotlin.s2.KtBase29.webServiceloginAPI
import java.lang.Exception


//TODO 43.Kotlin语言的substring
const val INFO = "Derry is Success Result"
fun main() {
    val indexOf = INFO.indexOf('i')
//    println(indexOf)
    println(INFO.substring(0,indexOf))
    println(INFO.substring(0 until indexOf))
}
